/*
 * 文件名：IndustryTeacherDaoImpl.java
 * 版权：Copyright 2007-2016 517na Tech. Co. Ltd. All Rights Reserved. 
 * 描述： IndustryTeacherDaoImpl.java
 * 修改人：yanshu
 * 修改时间：2016年1月29日
 * 修改内容：新增
 */
package com.feichuang.chineseWoodCarving.dao.impl;

import java.util.List;

import org.springframework.stereotype.Component;

import com.feichuang.chineseWoodCarving.dao.IndustryTeacherDao;
import com.feichuang.chineseWoodCarving.model.MIndustryTeacher;
import com.feichuang.chineseWoodCarving.model.MPagerRequestVo;

/**
 * TODO 添加类的一句话简单描述.
 * <p>
 * TODO 详细描述
 * <p>
 * TODO 示例代码
 * 
 * <pre>
 * </pre>
 * 
 * @author yanshu
 */
@Component("industryTeacherDao")
public class IndustryTeacherDaoImpl extends BaseDaoImpl implements IndustryTeacherDao {

    /**
     * {@inheritDoc}.
     */
    @Override
    public List<MIndustryTeacher> selectMIndustryTeacherFuzzyQuer(MPagerRequestVo<MIndustryTeacher> pageParam) {
        // TODO Auto-generated method stub
        return this.sqlSession.selectList("com.feichuang.chineseWoodCarving.dao.IndustryTeacherDao.selectMIndustryTeacherFuzzyQuer", pageParam);
    }

    /**
     * {@inheritDoc}.
     */
    @Override
    public int selectMIndustryTeacherCountForFuzzyQuer(MIndustryTeacher industryTeacher) {
        // TODO Auto-generated method stub
        return this.sqlSession.selectOne("com.feichuang.chineseWoodCarving.dao.IndustryTeacherDao.selectMIndustryTeacherCountForFuzzyQuer", industryTeacher);
    }

    /**
     * {@inheritDoc}.
     */
    @Override
    public List<MIndustryTeacher> selectMIndustryTeacherForPage(MPagerRequestVo<MIndustryTeacher> pageParam) {
        // TODO Auto-generated method stub
        return this.sqlSession.selectList("com.feichuang.chineseWoodCarving.dao.IndustryTeacherDao.selectMIndustryTeacherForPage", pageParam);
    }

    /**
     * {@inheritDoc}.
     */
    @Override
    public int selectMIndustryTeacherCountForPage(MIndustryTeacher industryTeacher) {
        // TODO Auto-generated method stub
        return this.sqlSession.selectOne("com.feichuang.chineseWoodCarving.dao.IndustryTeacherDao.selectMIndustryTeacherCountForPage");
    }

    /**
     * {@inheritDoc}.
     */
    @Override
    public boolean insertMIndustryTeacher(MIndustryTeacher industryTeacher) {
        // TODO Auto-generated method stub
        this.sqlSession.insert("com.feichuang.chineseWoodCarving.dao.IndustryTeacherDao.insertMIndustryTeacher", industryTeacher);
        return true;
    }

    /**
     * {@inheritDoc}.
     */
    @Override
    public boolean updateMIndustryTeacher(MIndustryTeacher industryTeacher) {
        // TODO Auto-generated method stub
        this.sqlSession.update("com.feichuang.chineseWoodCarving.dao.IndustryTeacherDao.updateMIndustryTeacher", industryTeacher);
        return true;
    }

    /**
     * {@inheritDoc}.
     */
    @Override
    public boolean deleteMIndustryTeacher(MIndustryTeacher industryTeacher) {
        // TODO Auto-generated method stub
        this.sqlSession.update("com.feichuang.chineseWoodCarving.dao.IndustryTeacherDao.deleteMIndustryTeacher", industryTeacher);
        return true;
    }

    /**
     * {@inheritDoc}.
     */
    @Override
    public MIndustryTeacher selectMIndustryTeacherByKeyId(MIndustryTeacher industryTeacher) {
        // TODO Auto-generated method stub
        return this.sqlSession.selectOne("com.feichuang.chineseWoodCarving.dao.IndustryTeacherDao.selectMIndustryTeacherByKeyId", industryTeacher);
    }

}
